The _redisplay() function is usally used for subclasses of BaseAppView
which want to implement their own _redisplay() function, having that
function name in two classes which have nothing to do with BaseAppView
can be quite confusing. Make those names less confusing and call the
functions _sync() and _rebuildMenu() instead.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1011
this.connect('destroy', this._onDestroy.bind(this));
- this._folder.connect('changed', this._redisplay.bind(this));
- this._redisplay();
+ this._folder.connect('changed', this._sync.bind(this));
+ this._sync();
}
_onDestroy() {
this.emit('name-changed');
}
- _redisplay() {
+ _sync() {
this._updateName();
this.visible = this.view.getAllItems().length > 0;
this.icon.update();
Main.uiGroup.add_actor(this.actor);
}
- _redisplay() {
+ _rebuildMenu() {
this.removeAll();
let windows = this._source.app.get_windows().filter(
}
popup(_activatingButton) {
- this._redisplay();
+ this._rebuildMenu();
this.open();
}
};